package cn.stylefeng.guns.modular.business.frequency.orderstatuschange.model.param;

import cn.stylefeng.guns.core.pojo.base.param.BaseParam;

import java.util.Date;
import lombok.Data;
import lombok.EqualsAndHashCode;

import javax.validation.constraints.NotNull;

/**
 * tt_order_status_change
 *
 * @author yujie
 * @date 2023/07/11 15:44
 */
@Data
@EqualsAndHashCode(callSuper = true)
public class OrderStatusChangeParam extends BaseParam {

    /**
     * id
     */
    @NotNull(message = "id不能为空",groups = {edit.class})
    private Long id;

    /**
     * create_time
     */
    private Date createTime;

    /**
     * update_time
     */
    private Date updateTime;

    /**
     * create_user
     */
    private Long createUser;

    /**
     * update_user
     */
    private Long updateUser;

    /**
     * 修改前状态
     */
    @NotNull(message = "修改前状态不能为空",groups = {add.class,edit.class})
    private Integer beforeChangeStatus;

    /**
     * 修改后状态
     */
    @NotNull(message = "修改后状态不能为空",groups = {add.class,edit.class})
    private Integer afterChangeStatus;

    /**
     * 订单id
     */
    @NotNull(message = "订单id不能为空",groups = {add.class,edit.class})
    private Long orderId;

    /**
     * 备注
     */
    @NotNull(message = "备注不能为空",groups = {add.class,edit.class})
    private String remark;

}
